import CSelectFormItem from '@/components/CSelectFormItem/CSelectFormItem'
import { routerOptionList } from '@/router/routerMap'
import { Form } from '@douyinfe/semi-ui'

export default function MenuSearchFormItem() {
  return (
    <>
      <Form.Input field="name" showClear label="菜单名" />
      <Form.Input field="path" showClear label="路径" />
      <Form.Input field="auths" showClear label="权限" />
      <Form.Select
        field="router"
        showClear
        filter
        className="w100"
        label="路由"
        optionList={routerOptionList}
      />
      <CSelectFormItem field={'showFlag'} label={'显示'} />
      <CSelectFormItem field={'firstFlag'} label={'起始页'} />
      <CSelectFormItem field={'enableFlag'} label={'启用'} />
      <CSelectFormItem field={'linkFlag'} label={'外链'} />
      <CSelectFormItem field={'authFlag'} label={'权限菜单'} />
    </>
  )
}
